Some more interning
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Nov 2017 13:18:11 +0000 (08:18 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Nov 2017 13:18:11 +0000 (08:18 -0500)
This avoids more strdups at startup.

20 files changed:
gtk/gtkcalendar.c
gtk/gtkcellareacontext.c
gtk/gtkcolorchooserwidget.c
gtk/gtkcolorplane.c
gtk/gtkcssiconthemevalue.c
gtk/gtkcssselector.c
gtk/gtkcssstaticstyle.c
gtk/gtkfilechooserwidget.c
gtk/gtkflowbox.c
gtk/gtklockbutton.c
gtk/gtkmenutrackeritem.c
gtk/gtkplacessidebar.c
gtk/gtkplacesview.c
gtk/gtkrecentmanager.c
gtk/gtkrevealer.c
gtk/gtksearchentry.c
gtk/gtkstacksidebar.c
gtk/gtktextlayout.c
gtk/gtkvolumebutton.c
gtk/gtkwidget.c

index b6cde75e79d1ec28914d578d7e44b7b2666ad3d5..eaaf17d0e3b49cf4bd72f6de94f7fad26da21984 100644 (file)
@@ -1063,7 +1063,7 @@ get_component_paddings (GtkCalendar *calendar,
   if (day_padding)
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "day-number");
+      gtk_style_context_add_class (context, I_("day-number"));
       gtk_style_context_get_padding (context, day_padding);
       gtk_style_context_restore (context);
     }
@@ -1071,7 +1071,7 @@ get_component_paddings (GtkCalendar *calendar,
   if (day_name_padding)
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "day-name");
+      gtk_style_context_add_class (context, I_("day-name"));
       gtk_style_context_get_padding (context, day_name_padding);
       gtk_style_context_restore (context);
     }
@@ -1079,7 +1079,7 @@ get_component_paddings (GtkCalendar *calendar,
   if (week_padding)
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "week-number");
+      gtk_style_context_add_class (context, I_("week-number"));
       gtk_style_context_get_padding (context, week_padding);
       gtk_style_context_restore (context);
     }
index fcdedeee16fe7873761edced6cce3b127659c553..e8ae95e1c28e907f06bac64a14709e141b4393dd 100644 (file)
@@ -131,10 +131,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("minimum-width",
                                                      P_("Minimum Width"),
                                                      P_("Minimum cached width"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkCellAreaContext:natural-width:
@@ -150,10 +148,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("natural-width",
                                                      P_("Minimum Width"),
                                                      P_("Minimum cached width"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkCellAreaContext:minimum-height:
@@ -169,10 +165,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("minimum-height",
                                                      P_("Minimum Height"),
                                                      P_("Minimum cached height"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkCellAreaContext:natural-height:
@@ -188,10 +182,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("natural-height",
                                                      P_("Minimum Height"),
                                                      P_("Minimum cached height"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 }
 
 /*************************************************************
index d264b57e72182f8b1e1a782fc9073980515a2dfb..25148021fd0055d81b9dea007cad9a6c386a3b68 100644 (file)
@@ -553,7 +553,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
   gtk_container_add (GTK_CONTAINER (box), button);
 
   cc->priv->settings = g_settings_new ("org.gtk.Settings.ColorChooser");
-  variant = g_settings_get_value (cc->priv->settings, "custom-colors");
+  variant = g_settings_get_value (cc->priv->settings, I_("custom-colors"));
   g_variant_iter_init (&iter, variant);
   i = 0;
   p = NULL;
@@ -587,7 +587,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
   gtk_container_add (GTK_CONTAINER (cc), box);
   gtk_container_add (GTK_CONTAINER (box), cc->priv->editor);
 
-  g_settings_get (cc->priv->settings, "selected-color", "(bdddd)",
+  g_settings_get (cc->priv->settings, I_("selected-color"), "(bdddd)",
                   &selected,
                   &color.red, &color.green, &color.blue, &color.alpha);
   if (selected)
index 023a4c29d716279486e5074371fbac4f82323de3..af0cede14063096611e354911e9092d4aca3fea9 100644 (file)
@@ -26,6 +26,7 @@
 #include "gtkgesturelongpress.h"
 #include "gtkintl.h"
 #include "gtksnapshot.h"
+#include "gtkprivate.h"
 
 struct _GtkColorPlanePrivate
 {
@@ -516,7 +517,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
                                                         "Hue Adjustment",
                                                         "Hue Adjustment",
                                                        GTK_TYPE_ADJUSTMENT,
-                                                       G_PARAM_WRITABLE |
+                                                       GTK_PARAM_WRITABLE |
                                                        G_PARAM_CONSTRUCT_ONLY));
 
   g_object_class_install_property (object_class,
@@ -525,7 +526,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
                                                         "Saturation Adjustment",
                                                         "Saturation Adjustment",
                                                        GTK_TYPE_ADJUSTMENT,
-                                                       G_PARAM_WRITABLE |
+                                                       GTK_PARAM_WRITABLE |
                                                        G_PARAM_CONSTRUCT_ONLY));
 
   g_object_class_install_property (object_class,
@@ -534,7 +535,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
                                                         "Value Adjustment",
                                                         "Value Adjustment",
                                                        GTK_TYPE_ADJUSTMENT,
-                                                       G_PARAM_WRITABLE |
+                                                       GTK_PARAM_WRITABLE |
                                                        G_PARAM_CONSTRUCT_ONLY));
 }
 
index a417b43da770b8848edd99b9ec29851c607f6c20..aafd3f46b9774c4873cad92b35f0f0757ab5cbde 100644 (file)
@@ -22,6 +22,7 @@
 #include "gtkicontheme.h"
 #include "gtksettingsprivate.h"
 #include "gtkstyleproviderprivate.h"
+#include "gtkintl.h"
 
 /*
  * The idea behind this value (and the '-gtk-icon-theme' CSS property) is
@@ -134,7 +135,7 @@ gtk_css_icon_theme_value_new (GtkIconTheme *icontheme)
   result = _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_ICON_THEME);
   result->icontheme = g_object_ref (icontheme);
 
-  g_object_set_data (G_OBJECT (icontheme), "-gtk-css-value", result);
+  g_object_set_data (G_OBJECT (icontheme), I_("-gtk-css-value"), result);
   result->changed_id = g_signal_connect (icontheme, "changed", G_CALLBACK (gtk_css_value_icon_theme_changed_cb), result);
 
   return result;
index e80b4423e6e89e70361f4650c92250a180e43446..4fc9bb42a4e9eac8a0d8b2dbd6c1dfe734a7ba1e 100644 (file)
@@ -1218,8 +1218,7 @@ parse_simple_selector (GtkCssParser   *parser,
   name = _gtk_css_parser_try_ident (parser, FALSE);
   if (name)
     {
-      selector = gtk_css_selector_new (&GTK_CSS_SELECTOR_NAME,
-                                       selector);
+      selector = gtk_css_selector_new (&GTK_CSS_SELECTOR_NAME, selector);
       selector->name.name = g_intern_string (name);
       g_free (name);
       parsed_something = TRUE;
index 9ae4092a6c8b2ad32d6fa315fc39b4eb98d9dc00..1152399d2991bfdaa3caf31e2612751f753a7d41 100644 (file)
@@ -33,6 +33,7 @@
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcsstransitionprivate.h"
 #include "gtkprivate.h"
+#include "gtkintl.h"
 #include "gtksettings.h"
 #include "gtkstyleanimationprivate.h"
 #include "gtkstylepropertyprivate.h"
@@ -158,7 +159,7 @@ gtk_css_static_style_get_default (void)
       default_style = gtk_css_static_style_new_compute (GTK_STYLE_PROVIDER (settings),
                                                         NULL,
                                                         NULL);
-      g_object_set_data_full (G_OBJECT (settings), "gtk-default-style",
+      g_object_set_data_full (G_OBJECT (settings), I_("gtk-default-style"),
                               default_style, clear_default_style);
     }
 
index db6b563d91291bf2e0e3d2604be9b2e60a457965..b29fe3d790b578798c29f7527905f86e4d1469ed 100644 (file)
@@ -8436,14 +8436,14 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
                                                          P_("Search mode"),
                                                          P_("Search mode"),
                                                          FALSE,
-                                                         G_PARAM_READWRITE));
+                                                         GTK_PARAM_READWRITE));
 
   g_object_class_install_property (gobject_class, PROP_SUBTITLE,
                                    g_param_spec_string ("subtitle",
                                                         P_("Subtitle"),
                                                         P_("Subtitle"),
                                                         "",
-                                                        G_PARAM_READABLE));
+                                                        GTK_PARAM_READABLE));
 
   _gtk_file_chooser_install_properties (gobject_class);
 
index 5043e03ae586dd5752812d528f93426ef0027982..6073b71f234cc03c6ae79fd89a9c8d55b572c81f 100644 (file)
@@ -3409,7 +3409,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("The selection mode"),
                        GTK_TYPE_SELECTION_MODE,
                        GTK_SELECTION_SINGLE,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:activate-on-single-click:
@@ -3422,7 +3422,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                           P_("Activate on Single Click"),
                           P_("Activate row on a single click"),
                           TRUE,
-                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                          GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:homogeneous:
@@ -3435,7 +3435,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                           P_("Homogeneous"),
                           P_("Whether the children should all be the same size"),
                           FALSE,
-                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                          GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:min-children-per-line:
@@ -3453,7 +3453,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("The minimum number of children to allocate "
                        "consecutively in the given orientation."),
                        0, G_MAXUINT, 0,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:max-children-per-line:
@@ -3467,7 +3467,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("The maximum amount of children to request space for "
                           "consecutively in the given orientation."),
                        1, G_MAXUINT, DEFAULT_MAX_CHILDREN_PER_LINE,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:row-spacing:
@@ -3479,7 +3479,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("Vertical spacing"),
                        P_("The amount of vertical space between two children"),
                        0, G_MAXUINT, 0,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:column-spacing:
@@ -3491,7 +3491,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("Horizontal spacing"),
                        P_("The amount of horizontal space between two children"),
                        0, G_MAXUINT, 0,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   g_object_class_install_properties (object_class, LAST_PROP, props);
 
index 7259042e021372861fb4ac32b30b97cb0877ef72..63d4e996a0f0776d1eaef29882d97982519c565e 100644 (file)
@@ -244,7 +244,7 @@ gtk_lock_button_init (GtkLockButton *button)
   update_state (button);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (button));
-  gtk_style_context_add_class (context, "lock");
+  gtk_style_context_add_class (context, I_("lock"));
 }
 
 static void
index ef1b60cd9f34fc35163f8df9d15fd444dbf3b4c5..0a7ca8c629bb23f9bbf6f431a438e67d2c8327e7 100644 (file)
@@ -22,6 +22,7 @@
 #include "gtkmenutrackeritem.h"
 #include "gtkactionmuxer.h"
 #include "gtkdebug.h"
+#include "gtkintl.h"
 
 #include "gtkactionmuxer.h"
 
@@ -141,7 +142,7 @@ gtk_menu_tracker_item_role_get_type (void)
       };
       GType type;
 
-      type = g_enum_register_static ("GtkMenuTrackerItemRole", values);
+      type = g_enum_register_static (I_("GtkMenuTrackerItemRole"), values);
 
       g_once_init_leave (&gtk_menu_tracker_item_role_type, type);
     }
index 3b16694a98fd5584ab877acb2373ee19db117f57..0ff021d3f678176376ed1c1755048c9922fc14e4 100644 (file)
@@ -64,6 +64,7 @@
 #include "gtkgesturelongpress.h"
 #include "gtkbox.h"
 #include "gtkmodelbutton.h"
+#include "gtkprivate.h"
 
 /**
  * SECTION:gtkplacessidebar
@@ -4683,56 +4684,56 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
                                P_("Location to Select"),
                                P_("The location to highlight in the sidebar"),
                                G_TYPE_FILE,
-                               G_PARAM_READWRITE);
+                               GTK_PARAM_READWRITE);
   properties[PROP_OPEN_FLAGS] =
           g_param_spec_flags ("open-flags",
                               P_("Open Flags"),
                               P_("Modes in which the calling application can open locations selected in the sidebar"),
                               GTK_TYPE_PLACES_OPEN_FLAGS,
                               GTK_PLACES_OPEN_NORMAL,
-                              G_PARAM_READWRITE);
+                              GTK_PARAM_READWRITE);
   properties[PROP_SHOW_RECENT] =
           g_param_spec_boolean ("show-recent",
                                 P_("Show recent files"),
                                 P_("Whether the sidebar includes a builtin shortcut for recent files"),
                                 TRUE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_DESKTOP] =
           g_param_spec_boolean ("show-desktop",
                                 P_("Show “Desktop”"),
                                 P_("Whether the sidebar includes a builtin shortcut to the Desktop folder"),
                                 TRUE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_ENTER_LOCATION] =
           g_param_spec_boolean ("show-enter-location",
                                 P_("Show “Enter Location”"),
                                 P_("Whether the sidebar includes a builtin shortcut to manually enter a location"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_LOCAL_ONLY] =
           g_param_spec_boolean ("local-only",
                                 P_("Local Only"),
                                 P_("Whether the sidebar only includes local files"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_TRASH] =
           g_param_spec_boolean ("show-trash",
                                 P_("Show “Trash”"),
                                 P_("Whether the sidebar includes a builtin shortcut to the Trash location"),
                                 TRUE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_OTHER_LOCATIONS] =
           g_param_spec_boolean ("show-other-locations",
                                 P_("Show “Other locations”"),
                                 P_("Whether the sidebar includes an item to show external locations"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_STARRED_LOCATION] =
           g_param_spec_boolean ("show-starred-location",
                                 P_("Show “Starred Location”"),
                                 P_("Whether the sidebar includes an item to show starred files"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
 
 
   /**
@@ -4744,7 +4745,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
    * Since: 3.18
    */
   properties[PROP_POPULATE_ALL] =
-          g_param_spec_boolean ("populate-all",
+          g_param_spec_boolean (I_("populate-all"),
                                 P_("Populate all"),
                                 P_("Whether to emit ::populate-popup for popups that are not menus"),
                                 FALSE,
index e559b0045fa4aab16a35bcc50a98dd9baf293eae..b07ffe9e501b8ee758af251951da39be482ea690 100644 (file)
@@ -22,6 +22,7 @@
 #include <gio/gvfs.h>
 #include <gtk/gtk.h>
 
+#include "gtkprivate.h"
 #include "gtkintl.h"
 #include "gtkmarshalers.h"
 #include "gtkplacesviewprivate.h"
@@ -2193,21 +2194,21 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
                                 P_("Local Only"),
                                 P_("Whether the sidebar only includes local files"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
 
   properties[PROP_LOADING] =
           g_param_spec_boolean ("loading",
                                 P_("Loading"),
                                 P_("Whether the view is loading locations"),
                                 FALSE,
-                                G_PARAM_READABLE);
+                                GTK_PARAM_READABLE);
 
   properties[PROP_FETCHING_NETWORKS] =
           g_param_spec_boolean ("fetching-networks",
                                 P_("Fetching networks"),
                                 P_("Whether the view is fetching networks"),
                                 FALSE,
-                                G_PARAM_READABLE);
+                                GTK_PARAM_READABLE);
 
   properties[PROP_OPEN_FLAGS] =
           g_param_spec_flags ("open-flags",
@@ -2215,7 +2216,7 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
                               P_("Modes in which the calling application can open locations selected in the sidebar"),
                               GTK_TYPE_PLACES_OPEN_FLAGS,
                               GTK_PLACES_OPEN_NORMAL,
-                              G_PARAM_READWRITE);
+                              GTK_PARAM_READWRITE);
 
   g_object_class_install_properties (object_class, LAST_PROP, properties);
 
index b93615d2b6d94d5e663ec5e6124dbbb8fdef1072..6ebebf3ea96fbbaa13a77084658d1b32657e64e9 100644 (file)
@@ -289,7 +289,7 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
                                                         P_("Filename"),
                                                         P_("The full path to the file to be used to store and read the list"),
                                                         NULL,
-                                                        (G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE)));
+                                                        (G_PARAM_CONSTRUCT_ONLY | GTK_PARAM_READWRITE)));
 
   /**
    * GtkRecentManager:size:
@@ -303,10 +303,8 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
                                    g_param_spec_int ("size",
                                                      P_("Size"),
                                                      P_("The size of the recently used resources list"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     0,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, 0,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkRecentManager::changed:
index 8564147e5f22ffc1bdec1610bef29d6cb2e708d8..af9a5de66c00159fab28d764d4d57cace97bb148 100644 (file)
@@ -258,7 +258,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
                           P_("Child Revealed"),
                           P_("Whether the child is revealed and the animation target reached"),
                           FALSE,
-                          G_PARAM_READABLE);
+                          GTK_PARAM_READABLE);
 
   g_object_class_install_properties (object_class, LAST_PROP, props);
 
index deedecf14b609e3f290f795c58da58466f67208c..522463e13e6c1546003eb37accf094445518a428 100644 (file)
@@ -370,7 +370,7 @@ gtk_search_entry_init (GtkSearchEntry *entry)
   if (GTK_IS_ACCESSIBLE (atk_obj))
     atk_object_set_name (atk_obj, _("Search"));
 
-  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), "search");
+  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), I_("search"));
 }
 
 /**
index 134999327fa6a54c9b2d3d8c81726ae9df4d52d7..1c1ea03720ad62ac0743a0bb52346111e7187f17 100644 (file)
@@ -302,7 +302,7 @@ add_child (GtkWidget       *widget,
   g_signal_connect (widget, "child-notify::position",
                     G_CALLBACK (on_position_updated), sidebar);
 
-  g_object_set_data (G_OBJECT (item), "stack-child", widget);
+  g_object_set_data (G_OBJECT (item), I_("stack-child"), widget);
   g_hash_table_insert (priv->rows, widget, row);
   gtk_container_add (GTK_CONTAINER (priv->list), row);
 }
index 0d3ce085b37c6d86070cba00efbcbe78e038a718..69db15f97016a3768fee911afcb334a925922cae 100644 (file)
@@ -1532,7 +1532,7 @@ gtk_text_attr_appearance_new (const GtkTextAppearance *appearance)
 
   if (!klass.type)
     klass.type = gtk_text_attr_appearance_type =
-      pango_attr_type_register ("GtkTextAttrAppearance");
+      pango_attr_type_register (I_("GtkTextAttrAppearance"));
 
   result = g_slice_new (GtkTextAttrAppearance);
   result->attr.klass = &klass;
index f40649239a2f02a98eb6083516683b25a12ca348..4dcf4ff8ca527b5c693282e0f1407c75a4b6ddac 100644 (file)
@@ -32,6 +32,7 @@
 #include "gtkadjustment.h"
 #include "gtkintl.h"
 #include "gtktooltip.h"
+#include "gtkprivate.h"
 
 
 /**
@@ -168,7 +169,7 @@ gtk_volume_button_class_init (GtkVolumeButtonClass *klass)
                                                          P_("Use symbolic icons"),
                                                          P_("Whether to use symbolic icons"),
                                                          TRUE,
-                                                         G_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
+                                                         GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
 
   /* Bind class to template
    */
index 6fd9ae40ed4b50b1bc3afb6e5d25642c5806efd5..8d1d917f6bd04b9072330eabb1c3042b62a3d4fc 100644 (file)
@@ -6475,7 +6475,7 @@ void
 _gtk_widget_set_captured_event_handler (GtkWidget               *widget,
                                         GtkCapturedEventHandler  callback)
 {
-  g_object_set_data (G_OBJECT (widget), "captured-event-handler", callback);
+  g_object_set_data (G_OBJECT (widget), I_("captured-event-handler"), callback);
 }
 
 static gboolean
@@ -6576,7 +6576,7 @@ _gtk_widget_captured_event (GtkWidget      *widget,
 
   return_val = _gtk_widget_run_controllers (widget, event_copy, GTK_PHASE_CAPTURE);
 
-  handler = g_object_get_data (G_OBJECT (widget), "captured-event-handler");
+  handler = g_object_get_data (G_OBJECT (widget), I_("captured-event-handler"));
   if (!handler)
     goto out;
 
@@ -15458,8 +15458,7 @@ gtk_widget_init_legacy_controller (GtkWidget *widget)
   GtkEventController *controller;
 
   controller = _gtk_event_controller_legacy_new (widget);
-  g_object_set_data_full (G_OBJECT (widget),
-                          "gtk-widget-legacy-event-controller",
+  g_object_set_data_full (G_OBJECT (widget), I_("gtk-widget-legacy-event-controller"),
                           controller, g_object_unref);
 }